package com.lk.api.app;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

import com.lk.api.R;
import com.lk.api.tools.HttpGetImage;


/**
 * Created by lk on 2014/12/30.
 */
public class ThreadHandlerActivity extends Activity {
    String uri = "http://www.baidu.com/img/bdlogo.png";
    ImageView mImageView;
    Button mButton;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.mina);
        mImageView = (ImageView) findViewById(R.id.imageView);//显示图片的ImageView
        mButton = (Button) findViewById(R.id.button);
        mButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                HttpGetImage httpGetImage = new HttpGetImage(uri, mImageView);

            }
        });
    }

}
